<html>
<head><title> Masuk aja bang </title>
<style>.error {
    color: red;
}</style>
</head>
<body>
<h3> Login Disini </h3>
<?php 
			$message = $this->session->flashdata('message');
			echo $message == '' ? '' : '<div class=error id="message">' . $message . '</div>';
		?>
<?php echo validation_errors(); ?>
<?php echo form_open('clogin/process_login'); ?>
<table>
<tr><td> Username </td>
	<td> : </td>
	<td><?php echo form_input('user'); ?></td>
</tr>
<tr><td> Password </td>
	<td> : </td>
	<td><?php echo form_password('password'); ?></td>
</tr>
<tr><td><?php echo form_submit('submit','Masuk','id="submit"'); ?></td>
</tr>
</table>
<?php echo form_close(); ?>
<button onclick="location.href='<?php echo base_url();?>index.php/cregister/index'">Daftar ?</button>
<?php echo anchor('homez','Ato nggak jadi login?'); ?>
</body>
</html>
